<div class="row">
    <div class="col-lg-4">
        <form class="inventory" action="" method="post" novalidate="novalidate">

            <input hidden="hidden" id="star" value="0">

            <h3 class="form-title">进货登记</h3>

            <div class="form-group">
                <div class="input-group">
                    <div class="input-group-addon">
                        商品分类<span id="star"></span>
                    </div>
                    <select class="form-control" id="i_type">
                        <?php
                        for ($i = 0; $data ['shopsname'][$i] != ""; $i++){
                            echo "<option>".$data ['shopsname'][$i]['type']."</option>";
                        }
                        ?>
                    </select>
                </div>
            </div>

            <div class="form-group">
                <div class="input-group">
                    <div class="input-group-addon">
                        商品名称
                    </div>
                    <select class="form-control" name="i_name" id="i_name">
                        <option>请选择商品分类</option>
                    </select>
                </div>
            </div>

            <div class="form-group">
                <div class="input-group">
                    <div class="input-group-addon">
                        渠道价(单价)
                    </div>
                    <input class="form-control" type="text" autocomplete="off" placeholder="请输入进货单价" name="c_price"/>
                </div>
            </div>

            <div class="form-group">
                <div class="input-group">
                    <div class="input-group-addon">
                        数量
                    </div>
                    <input class="form-control" type="text" autocomplete="off" placeholder="请输入商品数量" name="i_num"/>
                </div>
            </div>

            <div class="form-group">
                <div class="input-group">
                    <div class="input-group-addon">
                        进货店铺
                    </div>
                    <select class="form-control" name="i_shops">
                        <?php
                        for ($i = 0; $data ['sname'][$i] != ""; $i++){
                            echo "<option>".$data ['sname'][$i]['name']."</option>";
                        }
                        ?>
                    </select>
                </div>
            </div>

            <div class="form-group">
                <div class="input-group">
                    <div class="input-group-addon">
                        供应商名字
                    </div>
                    <select class="form-control" name="c_name">
                        <?php
                        for ($i = 0; $data ['cname'][$i] != ""; $i++){
                            echo "<option>".$data ['cname'][$i]['c_name']."</option>";
                        }
                        ?>
                    </select>
                </div>
            </div>

            <!--
            <div class="form-group">
                <div class="input-group">
                    <div class="input-group-addon">
                        商品图片
                    </div>
                    <input class="form-control" type="text" autocomplete="off" placeholder="请上传商品图片" name="img"/>
                </div>
            </div>
            -->

            <div class="form-actions">
                <button type="submit" class="btn btn-success">提交</button>
            </div>

            <div class="" style="color:#b94a48;margin-top: 10px;">
                <?php echo isset($data ['add_i_e']) ? $data ['add_i_e'] :'' ?>
            </div>

        </form>
    </div>

    <div class="col-lg-8">
        <div class="box">
            <div class="box-header">
                <h3 class="box-title">未付款详情</h3> <small>最多显示20条</small>
                <div class="dataTables_wrapper form-inline dt-bootstrap">
                    <div class="row">
                        <div class="col-sm-6"></div>
                        <div class="col-sm-6"></div>
                    </div>
                    <div class="row">
                        <div class="col-sm-12">
                            <table class="table table-bordered table-hover dataTable">
                                <thead>
                                <tr role="row">
                                    <th class="sorting">供应商名称</th>
                                    <th class="sorting">未付款</th>
                                </tr>
                                </thead>
                                <tbody>
                                <?php
                                for ($i = 0; $i < $data['Inventory_not_payment'][$i]; $i++){ ?>
                                    <tr>
                                        <td>
                                            <?php echo $data['Inventory_not_payment'][$i]['name']; ?>
                                        </td>
                                        <td>
                                            <?php echo $data['Inventory_not_payment'][$i]['price']; ?>
                                        </td>
                                    </tr>
                                <?php }?>
                                </tbody>
                                <tfoot>
                                <tr role="row">
                                    <th class="sorting">供应商名称</th>
                                    <th class="sorting">未付款</th>
                                </tr>
                                </tfoot>
                            </table>
                        </div>
                    </div>
                </div><!-- /.box-body -->
            </div><!-- /.box-header -->
            <div class="box-body">
            </div>
        </div>
    </div>
</div>

<div class="row">

    <!-- 左边 -->
    <div class="col-lg-12">
        <div class="box">
            <div class="box-header">
                <h3 class="box-title">进货日志</h3> <small>最多显示20条</small>
            </div><!-- /.box-header -->
            <div>
                <nav class="pull-right">
                    <ul class="pagination">
                        <li>
                            <a href="#" aria-label="Previous">
                                <span aria-hidden="true">上一页</span>
                            </a>
                        </li>
                        <li><a href="#">1</a></li>
                        <li><a href="#">2</a></li>
                        <li><a href="#">3</a></li>
                        <li><a href="#">4</a></li>
                        <li><a href="#">5</a></li>
                        <li>
                            <a href="#" aria-label="Next">
                                <span aria-hidden="true">下一页</span>
                            </a>
                        </li>
                    </ul>
                </nav>
            </div>
            <div class="box-body">
                <div class="dataTables_wrapper form-inline dt-bootstrap">
                    <div class="row">
                        <div class="col-sm-6"></div>
                        <div class="col-sm-6"></div>
                    </div>
                    <div class="row">
                        <div class="col-sm-12">
                            <table class="table table-bordered table-hover dataTable">
                                <thead>
                                <tr role="row">
                                    <th class="sorting">操作员</th>
                                    <th class="sorting">时间</th>
                                    <th class="sorting">商品</th>
                                    <th class="sorting">数量</th>
                                    <th class="sorting">单价</th>
                                    <th class="sorting">总价</th>
                                    <th class="sorting">供应商</th>
                                    <th class="sorting">仓库地址</th>
                                    <th class="sorting">是否结款</th>
                                    <th class="sorting">操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                <?php
                                for ($i = 0; $i < $data['Inventory_add_Log'][$i]; $i++){ ?>
                                    <tr>
                                        <td>
                                            <?php echo $data['Inventory_add_Log'][$i]['name']; ?>
                                        </td>
                                        <td>
                                            <?php echo $data['Inventory_add_Log'][$i]['time']; ?>
                                        </td>
                                        <td>
                                            <?php echo $data['Inventory_add_Log'][$i]['i_name']; ?>
                                        </td>
                                        <td>
                                            <?php echo $data['Inventory_add_Log'][$i]['i_num']; ?>
                                        </td>
                                        <td>
                                            <?php echo $data['Inventory_add_Log'][$i]['c_price']; ?>
                                        </td>
                                        <td>
                                            <?php echo $data['Inventory_add_Log'][$i]['i_sum']; ?>
                                        </td>
                                        <td>
                                            <?php echo $data['Inventory_add_Log'][$i]['c_name']; ?>
                                        </td>
                                        <td>
                                            <?php echo $data['Inventory_add_Log'][$i]['s_name']; ?>
                                        </td>
                                        <td>
                                            <?php
                                                echo $data['Inventory_add_Log'][$i]['start'] == 0 ? '否' : '是';
                                            ?>
                                        </td>
                                        <td>
                                            <div class="form-actions">
                                                <a class="btn btn-success">确认付款</a>
                                            </div>
                                        </td>
                                    </tr>
                                <?php }?>
                                </tbody>
                                <tfoot>
                                <tr role="row">
                                    <th class="sorting">操作员</th>
                                    <th class="sorting">时间</th>
                                    <th class="sorting">商品</th>
                                    <th class="sorting">数量</th>
                                    <th class="sorting">单价</th>
                                    <th class="sorting">总价</th>
                                    <th class="sorting">供应商</th>
                                    <th class="sorting">仓库地址</th>
                                    <th class="sorting">是否结款</th>
                                    <th class="sorting">操作</th>
                                </tr>
                                </tfoot>
                            </table>
                        </div>
                    </div>
                </div><!-- /.box-body -->
            </div>
        </div>
    </div>

    <!-- 右边 -->
    <div class="col-lg-6">

    </div>

</div>